# Contributor: Lauren N. Liberda <lauren@selfisekai.rocks>
# Maintainer: Lauren N. Liberda <lauren@selfisekai.rocks>
pkgname=py3-pycaption
pkgver=2.1.1
pkgrel=0
pkgdesc="Python module to read/write popular video caption formats"
url="https://github.com/pbs/pycaption"
arch="noarch"
license="Apache-2.0"
depends="
	python3
	py3-beautifulsoup4
	py3-cssutils
	py3-lxml
	py3-nltk
	"
makedepends="py3-setuptools"
checkdepends="
	py3-pytest
	py3-pytest-lazy-fixture
	"
source="https://github.com/pbs/pycaption/archive/refs/tags/$pkgver/pycaption-$pkgver.tar.gz"
builddir="$srcdir/pycaption-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
	rm -rf "$pkgdir"/usr/lib/python3*/site-packages/tests
}

sha512sums="
ff69fff7cb132458ea9c429cb6f7e5a3557b7e70f9db5a1ccd3eefad0678a75727f910b35169533b8da1f58756208055639c57b178407f34f03c2352c93e1099  pycaption-2.1.1.tar.gz
"
